<%@ page language="java" contentType="text/html; charset=BIG5"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<div width="100%" class="queryReturnContainer">
<form:form method="post" action="../report03/doPreview.do" commandName="formData">	       	    	
	<input type="hidden" name="defStartYear" value="${formData.defStartYear }"/>
	<input type="hidden" name="startYear" value="${formData.startYear }"/>
	<input type="hidden" name="endYear" value="${formData.endYear }"/>
	<input type="hidden" name="timeType" value="${formData.timeType }"/>
	<input type="hidden" name="reportType" value="${formData.fromReport }"/>
	<input type="submit" value="回上層查詢"/>                    
 </form:form> 
</div>
 
<form:form method="post" action="doPreview.do" commandName="formData">
<table width="800px" class="form">
	<tbody>
    <tr>
        <td width="15%">
			報表類別
        </td>    
        <td width="35%">
			<c:choose>
				<c:when test="${formData.reportType==null || formData.reportType=='PL'}">
		            <input type="radio" name="reportType" value="PL"  checked/> <spring:message code="report04.reportName.PL"/><br />
					<input type="radio" name="reportType" value="FL"/> <spring:message code="report04.reportName.FL"/>
				</c:when>			
				<c:otherwise>
		            <input type="radio" name="reportType" value="PL"/> <spring:message code="report04.reportName.PL"/><br />
					<input type="radio" name="reportType" value="FL" checked/> <spring:message code="report04.reportName.FL"/>
				</c:otherwise>
			</c:choose>           	
        </td>     
    </tr> 
    </tbody>
  	<tfoot>
    <tr>
        <td colspan="4">
	        	<input type="hidden" name="defStartYear" value="${formData.defStartYear }"/>
	        	<input type="hidden" name="startYear" value="${formData.startYear }"/>
	        	<input type="hidden" name="endYear" value="${formData.endYear }"/>
	        	<input type="hidden" name="timeType" value="${formData.timeType }"/>
	        	<input type="hidden" name="fromReport" value="${formData.fromReport }"/>
	        	<input type="hidden" name="queryDetailItemCode" value="${formData.queryDetailItemCode }"/>
	        	<input type="submit" value="查詢"/>    
        </td>
    </tr>  
    </tfoot>   
</table> 
</form:form>
